<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/11 0011
 * Time: 下午 2:22
 */

namespace app\admin\controller;
use app\admin\model\WebLog as WebLogModel;
use think\Controller;


class Weblog extends Controller
{
    public function insert($data){
        $data['create_time'] = time();
        $data['operator'] = session('username');
        $data['ip'] = request()->ip();
        $res = WebLogModel::create($data);
        return $res;
    }
}